using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UtilLib;
using Zpb;

public static partial class GameData
{
    public static string Account = "";
    public static long Uuid = 0;
    public static string Token = "";

    public static long Puid = 0;


    public static PlayerInfoBase PlayerInfoBase = new PlayerInfoBase();
    public static PlayerInfoMisc PlayerInfoMisc = new PlayerInfoMisc();
    public static RoleInfoTalent PlayerInfoTalent = new RoleInfoTalent();
    public static RoleInfoStatus PlayerInfoStatus = new RoleInfoStatus();
    public static RoleInfoProps PlayerInfoProps = new RoleInfoProps();
    public static RoleInfoItems PlayerInfoItems = new RoleInfoItems();
    public static RoleInfoEquips PlayerInfoEquips = new RoleInfoEquips();
    public static RoleInfoPerform PlayerInfoPerform = new RoleInfoPerform();

    public static RoomInfo RoomInfo = new RoomInfo();

    public static Dictionary<string, InfoSkill> Skills = new Dictionary<string, InfoSkill>();
    public static Dictionary<string, InfoUsage> Usages = new Dictionary<string, InfoUsage>();


    public static bool IsSelf(this long puid) => Puid == puid;
    public static bool IsSelf(this string name) => PlayerInfoBase.Name == name;
    public static bool HasFamily => !PlayerInfoBase.Family.IsNullOrEmpty();
    public static bool HasGuild => !PlayerInfoBase.Guild.IsNullOrEmpty();

}
